#ifndef FINS_H
#define FINS_H

#include <QDialog>
#include <QTimer>
#include <QDebug>

//#include "logger.h"

namespace Ui {
    class Fins;
}

class Fins : public QDialog
{
    Q_OBJECT

public:
    explicit Fins(QWidget *parent = 0);
    ~Fins();

    int16_t GetPLCMemW (int addr) {return W[addr];}
    int16_t GetPLCMemCIO (int addr) {return CIO[addr];}
    int16_t GetPLCMemH (int addr) {return H[addr];}


private:
    Ui::Fins *ui;

    int MsgCounter;

    int16_t W[512];
    int16_t CIO[512];
    int16_t H[512];



private slots:
    void Timer1sec();

signals:
    void from_fins_out();
};

#endif // FINS_H
